import 'package:get/get.dart';

class LifeCycleController2 extends GetxController {
  int _counter = 0;
  int get counter => _counter;
  set counter(newValue) {
    _counter = newValue;
    update();
  }

  LifeCycleController2(){
    Get.log("....创建LifeCycleController2对象");
  }

  @override
  void onInit() {
    Get.log(">>> LifeCycleController2 onInit");
    super.onInit();
  }

  @override
  void onReady() {
    Get.log(">>> LifeCycleController2 onReady");
    super.onReady();
  }

  @override
  void onClose() {
    Get.log(">>> LifeCycleController2 onClose");
    super.onClose();
  }
}